Optimal. Leaf size=103 \[ -\frac {2 c^3 \cos (e+f x)}{f \left (a^3 \sin (e+f x)+a^3\right )}-\frac {c^3 x}{a^3}-\frac {2 a^2 c^3 \cos ^5(e+f x)}{5 f (a \sin (e+f x)+a)^5}+\frac {2 c^3 \cos ^3(e+f x)}{3 f (a \sin (e+f x)+a)^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.18, antiderivative size = 103, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 3, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.115, Rules used = {2736, 2680, 8} \[ -\frac {2 a^2 c^3 \cos ^5(e+f x)}{5 f (a \sin (e+f x)+a)^5}-\frac {2 c^3 \cos (e+f x)}{f \left (a^3 \sin (e+f x)+a^3\right )}-\frac {c^3 x}{a^3}+\frac {2 c^3 \cos ^3(e+f x)}{3 f (a \sin (e+f x)+a)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2680
Rule 2736
Rubi steps
\begin {align*} \int \frac {(c-c \sin (e+f x))^3}{(a+a \sin (e+f x))^3} \, dx &=\left (a^3 c^3\right ) \int \frac {\cos ^6(e+f x)}{(a+a \sin (e+f x))^6} \, dx\\ &=-\frac {2 a^2 c^3 \cos ^5(e+f x)}{5 f (a+a \sin (e+f x))^5}-\left (a c^3\right ) \int \frac {\cos ^4(e+f x)}{(a+a \sin (e+f x))^4} \, dx\\ &=-\frac {2 a^2 c^3 \cos ^5(e+f x)}{5 f (a+a \sin (e+f x))^5}+\frac {2 c^3 \cos ^3(e+f x)}{3 f (a+a \sin (e+f x))^3}+\frac {c^3 \int \frac {\cos ^2(e+f x)}{(a+a \sin (e+f x))^2} \, dx}{a}\\ &=-\frac {2 a^2 c^3 \cos ^5(e+f x)}{5 f (a+a \sin (e+f x))^5}+\frac {2 c^3 \cos ^3(e+f x)}{3 f (a+a \sin (e+f x))^3}-\frac {2 c^3 \cos (e+f x)}{f \left (a^3+a^3 \sin (e+f x)\right )}-\frac {c^3 \int 1 \, dx}{a^3}\\ &=-\frac {c^3 x}{a^3}-\frac {2 a^2 c^3 \cos ^5(e+f x)}{5 f (a+a \sin (e+f x))^5}+\frac {2 c^3 \cos ^3(e+f x)}{3 f (a+a \sin (e+f x))^3}-\frac {2 c^3 \cos (e+f x)}{f \left (a^3+a^3 \sin (e+f x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.44, size = 239, normalized size = 2.32 \[ \frac {(c-c \sin (e+f x))^3 \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right ) \left (48 \sin \left (\frac {1}{2} (e+f x)\right )-15 (e+f x) \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right )^5+92 \sin \left (\frac {1}{2} (e+f x)\right ) \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right )^4+44 \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right )^3-88 \sin \left (\frac {1}{2} (e+f x)\right ) \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right )^2-24 \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right )\right )}{15 f (a \sin (e+f x)+a)^3 \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^6} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.43, size = 233, normalized size = 2.26 \[ \frac {60 \, c^{3} f x - {\left (15 \, c^{3} f x + 46 \, c^{3}\right )} \cos \left (f x + e\right )^{3} + 24 \, c^{3} - {\left (45 \, c^{3} f x - 2 \, c^{3}\right )} \cos \left (f x + e\right )^{2} + 6 \, {\left (5 \, c^{3} f x + 12 \, c^{3}\right )} \cos \left (f x + e\right ) + {\left (60 \, c^{3} f x - 24 \, c^{3} - {\left (15 \, c^{3} f x - 46 \, c^{3}\right )} \cos \left (f x + e\right )^{2} + 6 \, {\left (5 \, c^{3} f x + 8 \, c^{3}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )}{15 \, {\left (a^{3} f \cos \left (f x + e\right )^{3} + 3 \, a^{3} f \cos \left (f x + e\right )^{2} - 2 \, a^{3} f \cos \left (f x + e\right ) - 4 \, a^{3} f + {\left (a^{3} f \cos \left (f x + e\right )^{2} - 2 \, a^{3} f \cos \left (f x + e\right ) - 4 \, a^{3} f\right )} \sin \left (f x + e\right )\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.23, size = 111, normalized size = 1.08 \[ -\frac {\frac {15 \, {\left (f x + e\right )} c^{3}}{a^{3}} + \frac {4 \, {\left (15 \, c^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} + 30 \, c^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 100 \, c^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 50 \, c^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 13 \, c^{3}\right )}}{a^{3} {\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{5}}}{15 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.30, size = 143, normalized size = 1.39 \[ -\frac {2 c^{3} \arctan \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{a^{3} f}-\frac {64 c^{3}}{5 a^{3} f \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{5}}+\frac {32 c^{3}}{a^{3} f \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{4}}-\frac {80 c^{3}}{3 a^{3} f \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{3}}+\frac {8 c^{3}}{a^{3} f \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )^{2}}-\frac {4 c^{3}}{a^{3} f \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 1.46, size = 781, normalized size = 7.58 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 8.94, size = 200, normalized size = 1.94 \[ \frac {c^3\,\left (e+f\,x\right )+\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )\,\left (5\,c^3\,\left (e+f\,x\right )-\frac {c^3\,\left (75\,e+75\,f\,x+200\right )}{15}\right )-\frac {c^3\,\left (15\,e+15\,f\,x+52\right )}{15}+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4\,\left (5\,c^3\,\left (e+f\,x\right )-\frac {c^3\,\left (75\,e+75\,f\,x+60\right )}{15}\right )+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^3\,\left (10\,c^3\,\left (e+f\,x\right )-\frac {c^3\,\left (150\,e+150\,f\,x+120\right )}{15}\right )+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2\,\left (10\,c^3\,\left (e+f\,x\right )-\frac {c^3\,\left (150\,e+150\,f\,x+400\right )}{15}\right )}{a^3\,f\,{\left (\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )+1\right )}^5}-\frac {c^3\,x}{a^3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 26.24, size = 1284, normalized size = 12.47 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________